import { Style, Icon, Stroke, Fill, Circle } from 'ol/style'
import imgGeo from '@/assets/map/uav.png'
export const styleList = {
  route: new Style({
    stroke: new Stroke({
      width: 2,
      color: 'yellow'
    })
  }),
  geoMarker: new Style({
    image: new Icon({
      anchor: [0.5, 0.5],
      src: imgGeo,
      crossOrigin: '',
      // scale: [1, 1],
      scale: 0.15,
      rotateWithView: true
    })
  }),
  droneRoute: new Style({
    stroke: new Stroke({
      width: 4,
      color: '#5798FF',
      lineDash: [10]
    })
  }),
  routeStop: new Style({
    image: new Circle({
      // 半径
      radius: 5,
      // 填充样式
      fill: new Fill({
        color: 'white'
      }),
      // 边界样式
      stroke: new Stroke({
        color: '#5798FF',
        // 边界宽度
        width: 2
      })
    })
  })
}

